<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>每日最新电影上线</title>
    <link rel="stylesheet" type="text/css" href="framework/bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div class="panel panel-primary text-center">
                <div class="panel-heading">
                    <h1 class="panel-title">每日最新电影上线</h1>
                </div>
                <div class="panel-body">
                    <div class="col-xs-offset-1 col-xs-10">
                        <p>
                            <a href="all.do" class="btn btn-info">添加最新上线电影</a>
                        </p>
                        <table class="table table-striped table-bordered table-hover text-center">
                            <tr>
                                <th class="text-center">电影编号</th>
                                <th class="text-center">影片名称</th>
                                <th class="text-center">影片简介</th>
                                <th class="text-center">电影主演</th>
                                <th class="text-center">上线日期</th>
                                <th class="text-center">修改信息</th>
                                <th class="text-center">电影下架</th>
                            </tr>
                            <c:forEach items="${pb.data}" var="f">
                                <fmt:formatDate value="${f.playdate}" pattern="yyyy-MM-dd" var="online"></fmt:formatDate>
                                <tr>
                                    <td>${f.filmid}</td>
                                    <td>${f.filmname}</td>
                                    <td>${f.info}</td>
                                    <td>${f.actorname}</td>
                                    <td>${online}</td>
                                    <td><a href="#">修改</a></td>
                                    <td><a href="del.do?filmid=${f.filmid}">下架</a></td>
                                </tr>
                            </c:forEach>
                        </table>
                    </div>
                </div>
                <div class="panel-footer">
                    <ul class="pagination">
                        <li><a href="init.do?currentPage=1">首页</a></li>
                        <li><a href="init.do?currentPage=${pb.prev}">上页</a></li>
                        <li><a href="init.do?currentPage=${pb.next}">下页</a></li>
                        <li><a href="init.do?currentPage=${pb.countPage}">尾页</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
